
<template>
  <transition name='slide'>
    <div class="mine">
      <nav-bar>
        <div slot="left" class="back" @click="goBack">
          <i class="icon-back"></i>
        </div>
        <div slot="center">个人中心</div>
      </nav-bar>
      <div class='total'>
        <router-link tag="div" class='total-item' v-for='v in mineList' :key='v.id' :to='v.path'>
          <p>{{v.name}}</p>
        </router-link>
      </div>
      <div class='copy-right'>
        <p>self Music</p>
        <p>微信电话：18819119380 QQ:1553329806</p>
      </div>
    </div>
  </transition>
</template>

<script>
import NavBar from 'components/common/navbar'
import { mines } from '@/typeconfig/mine.js'

import { mapState } from 'vuex'
export default {
  components: { NavBar },
  data() {
    return {
      mineList: mines,
      title: '',
      show: false
    }
  },
  methods: {
    goBack() {
      this.$router.push('/')
    }
  },
  computed: {
    ...mapState(['historyPlay', 'loveMusic'])
  }
}
</script>

<style scoped >
.mine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
}
.mine .back {
  color: var(--color-theme);
  font-size: 20px;
}
.total {
  text-align: center;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  height: calc(100% - 200px);
}
.total-item {
  height: 40px;
  line-height: 40px;
  width: 70%;
  background-color: var(--color-dialog-background);
  border-radius: 20px;
}
.copy-right {
  text-align: center;
  line-height: 30px;
  font-size: 12px;
  color: var(--color-text-l);
}
</style>